import 'package:flutter/material.dart';

/**
 * @title 最大宽度限制为1280
 */
class LimitMaxWidth extends StatelessWidget {
  Widget child;
  double maxWidth;

  LimitMaxWidth({
    super.key,
    required this.child,
    this.maxWidth = 1280,
  });

  @override
  Widget build(BuildContext context) {
    return Container(
      constraints: BoxConstraints(maxWidth: maxWidth),
      child: child,
    );
  }
}
